package bb.lanxing.util.ui;


import androidx.fragment.app.FragmentManager;

import java.util.ArrayList;
import java.util.List;

import bb.lanxing.App;
import bb.lanxing.R;

public final class RemoveDeviceBottomSheetDialog {
    public static ChoiceBottomSheetFragment show(FragmentManager manager, ChoiceBottomSheetFragment.ChoiceBottomSheetFragmentActionHandler callback) {
        ChoiceBottomSheetFragment.Companion companion = ChoiceBottomSheetFragment.Companion;
        ChoiceBottomSheetFragment.ChoiceBean choiceBean = new ChoiceBottomSheetFragment.ChoiceBean();
        choiceBean.setHandler(callback);
        choiceBean.setIcon(0);
        choiceBean.setPageTitle(R.string.st_remove);
        choiceBean.setDes(R.string.st_step_to_remove_device);
        List<Integer> list = new ArrayList<>();
        list.add(R.string.st_tap_the_remove_button_below);
        list.add(R.string.st_make_sure_device_not_paired);
        choiceBean.setTips(list);
        String string = App.getContext().getString(R.string.st_you_will_no_longer_sync_device_with_xoss);
        choiceBean.setDesStringBottom(string);
        choiceBean.setPositiveBt(R.string.st_remove);
        choiceBean.setNegativeBt(R.string.cancel);
        ChoiceBottomSheetFragment newInstance = companion.newInstance(choiceBean);
        newInstance.setCancelable(true);
        try {
            newInstance.show(manager, "RemoveDeviceBottomSheetDialog");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return newInstance;
    }
}
